<!-- 试题单元列表 -->
<!DOCTYPE html>
<html>
  <head>
    <include file="./Public/html/_head.html"/>
    <style>
      #unit{
        display:none;
      }
    </style>
  </head>

  <body ontouchstart>
    <include file="./Public/html/_refresh.html"/>

    <header class='demos-header'>
      <h1 class="demos-title">选择班级</h1>
    </header>

    <div class="bd">
      <div class="weui_cells_title">请选择班级</div>
      <div class="weui_cells weui_cells_checkbox">
        <label class="weui_cell weui_check_label" for="s16">
          <div class="weui_cell_hd">
            <input type="checkbox" name="checkbox1" class="weui_check" id="s16" checked="checked">
            <i class="weui_icon_checked"></i>
            <div id="unit">all</div>
          </div>
          <div class="weui_cell_bd weui_cell_primary">
            <p>所有班级</p>
          </div>
          <div class="weui_cell_ft"></div>
        </label>
        <label class="weui_cell weui_check_label" for="s11">
          <div class="weui_cell_hd">
            <input type="checkbox" class="weui_check" name="checkbox1" id="s11">
            <i class="weui_icon_checked"></i>
            <div id="unit">网络1501</div>
          </div>
          <div class="weui_cell_bd weui_cell_primary">
            <p>网络1501</p>
          </div>
        </label>
        <label class="weui_cell weui_check_label" for="s12">
          <div class="weui_cell_hd">
            <input type="checkbox" name="checkbox1" class="weui_check" id="s12">
            <i class="weui_icon_checked"></i>
            <div id="unit">网络1502</div>
          </div>
          <div class="weui_cell_bd weui_cell_primary">
            <p>网络1502</p>
          </div>
          <div class="weui_cell_ft"></div>
        </label>
        <label class="weui_cell weui_check_label" for="s13">
          <div class="weui_cell_hd">
            <input type="checkbox" name="checkbox1" class="weui_check" id="s13">
            <i class="weui_icon_checked"></i>
            <div id="unit">国商1401</div>
          </div>
          <div class="weui_cell_bd weui_cell_primary">
            <p>国商1401</p>
          </div>
          <div class="weui_cell_ft"></div>
        </label>
        <label class="weui_cell weui_check_label" for="s14">
          <div class="weui_cell_hd">
            <input type="checkbox" name="checkbox1" class="weui_check" id="s14">
            <i class="weui_icon_checked"></i>
            <div id="unit">工商1401</div>
          </div>
          <div class="weui_cell_bd weui_cell_primary">
            <p>工商1401</p>
          </div>
          <div class="weui_cell_ft"></div>
        </label>
        <label class="weui_cell weui_check_label" for="s15">
          <div class="weui_cell_hd">
            <input type="checkbox" name="checkbox1" class="weui_check" id="s15">
            <i class="weui_icon_checked"></i>
            <div id="unit">营销1401</div>
          </div>
          <div class="weui_cell_bd weui_cell_primary">
            <p>营销1401</p>
          </div>
          <div class="weui_cell_ft"></div>
        </label>
      </div>
    </div>
    <div class="weui_btn_area">
      <a class="weui_btn weui_btn_primary" href="javascript:" id="submit">确定</a>
    </div>
  </body>
</html>
<include file="./Public/html/_foot.html"/>
<include file="./Public/html/_refreshJs.html"/>
<script>
$('#submit').click(function(){
  var unit = '';
  $(":checked").each(function(){
    unit += $(this).siblings('#unit').html();
    unit += '_';
  });

  if(unit === '') {$.toptip('你还没有选择章节','warning');return false;}  
  window.location.href = 'markClass/class/'+unit;
});
</script>
